package nsu.edu.zsq.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import nsu.edu.zsq.bean.ExamStudent;
import nsu.edu.zsq.bean.ExamStudentExample;
import nsu.edu.zsq.bean.SchExam;

public interface ExamStudentMapper {
    /**
     *
     */
    long countByExample(ExamStudentExample example);

    /**
     *
     */
    int deleteByExample(ExamStudentExample example);

    /**
     *
     */
    int deleteByPrimaryKey(Integer id);

    /**
     *
     */
    int insert(ExamStudent record);

    /**
     *
     */
    int insertSelective(ExamStudent record);

    /**
     *
     */
    List<ExamStudent> selectByExample(ExamStudentExample example);

    /**
     *
     */
    ExamStudent selectByPrimaryKey(Integer id);

    /**
     *
     */
    int updateByExampleSelective(@Param("record") ExamStudent record, @Param("example") ExamStudentExample example);

    /**
     *
     */
    int updateByExample(@Param("record") ExamStudent record, @Param("example") ExamStudentExample example);

    /**
     *
     */
    int updateByPrimaryKeySelective(ExamStudent record);

    /**
     *
     */
    int updateByPrimaryKey(ExamStudent record);

    /**
     * 获取考试学生信息列表
     * @param schExam 考试课程（id,roomName）
     * @return List<ExamStudent>
     */
    List<ExamStudent> listExamStudent(SchExam schExam);

    /**
     * 获取当前学生的考试安排信息
     * @param stuNo 学号
     * @return List<Map<String, Object>>
     */
    List<Map<String, Object>> listExamInfo(String stuNo);
}